class Constants:
    SucceedCode = 1
    FailedCode = -1

class ChargeMode:
    ChargeModeTimeMode = 0
    ChargeModeEnergyMode = 1
    ChargeModePowerMode = 2
    ChargeModeTimeMode2 = 7
    ChargeModeEnergyMode2 = 8
    ChargeModePowerMode2 = 9
    ChargeModeStandardEnergyMode = 11

class RestartType:
    RestartTypeModule = 0
    RestartTypeMicrocontroller = 1

class DeviceType:
    DeviceTypeNormalSlowCharge = 0
    DeviceTypePowerSlowCharge = 1
    DeviceTypeEnergySlowCharge = 2
    DeviceTypeFastCharge = 3
    DeviceTypePower10 = 4
    DeviceTypeEnergy20 = 5
    DeviceTypeDualPowerSlowCharge = 6
    DeviceTypeNormalPower = 8
    DeviceTypeLoraGateway = 9
    DeviceTypeLoraNode = 10
    DeviceTypePower10C = 11
    DeviceTypeCarACCharger70 = 12
    DeviceTypeCarSlowCharger = 13
    DeviceTypeCarACChargerDualGun = 18
    DeviceTypeCarFastCharger = 17
    DeviceTypeDualPower10A = 19
    DeviceTypeDualPower16A = 20
    DeviceTypeCarHomeCharger = 21

class IsErrorType:
    IsErrorTypeOK = 0
    IsErrorTypeNotOK = 1

class ChargeType:
    ChargeTypeFixed = "fixed"
    ChargeTypeCustom = "custom"

class WhetherRefund:
    WhetherRefundNo = 0
    WhetherRefundYes = 1

class IsFreeCharge:
    IsFreeChargeNeedPay = 0
    IsFreeChargeYes = 1

class IsOutage:
    IsOutageNoLimit = 0
    IsOutageLimited = 1